package com.wicket.okrapp.dal.po.mbg;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;


import com.wicket.okrapp.common.annotations.OrderFlag;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * @author xxx
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
@TableName("oms_batch_Related_set")
public class RelatedSet extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 批次相关设置ID
     */
    @TableId(value = "batch_related_set_id", type = IdType.UUID)
    @NotNull(message = "batchRelatedSetId不能为空")
    private String batchRelatedSetId;
    /**
     * 批次设置对象ID
     */
    @TableField(value = "batch_set_id")
    @ApiModelProperty("批次设置对象ID")
    private String batchSetId;
    /**
     * 批次设置对象类型
     */
    @TableField(value = "batch_set_object_type")
    @ApiModelProperty("批次设置对象类型")
    private String batchSetObjectType;
    /**
     * 是否锁定
     */
    @TableField(value = "is_lock")
    @ApiModelProperty("是否锁定")
    private String isLock;
    /**
     * 是否自动锁定
     */
    @TableField(value = "is_auto_lock")
    @ApiModelProperty("是否自动锁定")
    private String isAutoLock;
    /**
     * 是否汇报锁定
     */
    @TableField(value = "is_report_lock")
    @ApiModelProperty("是否汇报锁定")
    private String isReportLock;
    /**
     * 是否统一管理
     */
    @TableField(value = "is_unified_mgt")
    @ApiModelProperty("是否统一管理")
    private String isUnifiedMgt;
    /**
     * 操作人就职记录ID
     */
    @TableField(value = "operation_induction_id")
    @ApiModelProperty("操作人就职记录ID")
    private String operationInductionId;
    /**
     * 创建人就职记录ID
     */
    @TableField(value = "create_induction_id")
    @ApiModelProperty("创建人就职记录ID")
    private String createInductionId;
    /**
     * 操作时间
     */
    @TableField(value = "operate_time")
    @ApiModelProperty("操作时间")
    @OrderFlag(orderType = "desc")
    private Date operateTime;
    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    @ApiModelProperty("创建时间")
    private Date createTime;
    /**
     * 是否作废
     */
    @TableField(value = "is_valid")
    @ApiModelProperty("是否作废")
    private String isValid;
    /**
     * 创建于空间ID
     */
    @TableField(value = "space_id")
    @ApiModelProperty("创建于空间ID")
    private String spaceId;
    /**
     * 创建于联盟应用ID
     */
    @TableField(value = "app_id")
    @ApiModelProperty("创建于联盟应用ID")
    private String appId;
}
